<?php
class commentController extends Controller
{
    function showIndex()
    {
        $pagination_sql = "select c.*,u.userName as userName from comment c left join user u on c.userId=u.userId order by c.createDate desc";
        $pagination_count_sql = "select count(1) as count  from comment c left join user u on c.userId=u.userId order by c.createDate desc";
        $this->putIntoPage("pagination", $this->modules->Comment->pagination($pagination_sql, $pagination_count_sql));
        $this->render("Comment");
    }

    function del()
    {
        $this->modules->Comment->delete($this->_get['id']);
        $this->showIndex();
    }


}

?>